package cn.linstudy.product.service;

import cn.linstudy.common.utils.PageUtils;
import cn.linstudy.product.entity.BrandEntity;
import com.baomidou.mybatisplus.extension.service.IService;
import cn.linstudy.product.entity.CategoryBrandRelationEntity;

import java.util.List;
import java.util.Map;

/**
 * 品牌分类关联
 *
 * @author XiaoLin
 * @email ljp2020vip@163.com
 * @date 2023-01-04 14:59:45
 */
public interface CategoryBrandRelationService extends IService<CategoryBrandRelationEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveDetail(CategoryBrandRelationEntity categoryBrandRelation);

    void updateBrand(Long brandId, String name);

    void updateCategory(Long catId, String categoryName);

    /**
     * 获取分类对应的品牌
     * @param catId
     * @return
     */
    List<BrandEntity> getBrandByCatID(Long catId);
}

